#include "myFunctions.h"
#include "Hopfield.h"
int main(int argc,char *argv[]){
	vector<int> X1, X2, X3, Xtest;
	readFile(X1,"patterns/pattern1.txt");	
	readFile(X2,"patterns/pattern2.txt");
	readFile(X3,"patterns/pattern3.txt");
	readFile(Xtest,"patterns/patternTest.txt");

	vector<vector<int> > X;
	X.push_back(X1);
	X.push_back(X2);
	X.push_back(X3);

	Hopfield H = Hopfield("config_ej3.txt");
	
	H.training(X);
	
	vector<int> out = H.output(Xtest);
	
	cout<<endl<<"Entrada Sucia[arriba] -  Salida Obtenida [al medio] - salida deseada [abajo] "<<endl<<endl;
	view_vi(Xtest);
	view_vi(out);
	view_vi(X2); //aca cambiar de auerdo a cual "ensuciamos" en el archivo (ojo! solo tocar "patternTest.txt")

	return 1;
}
